import { createRouter, createWebHistory } from "vue-router"
import Home from "../pages/Home.vue"

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/child",
    name: "Child",
    component: () => import(/* webpackChunkName: "about" */ "../pages/Child/index.vue"),
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})

export default router
